//
//  main.cpp
//  P1035
//
//  Created by 洋犀利 on 2019/8/29.
//  Copyright © 2019 洋犀利. All rights reserved.
//

#include <iostream>
using namespace std;

int main(int argc, const char * argv[]) {
    double k;
    cin>>k;
    double total = 0.0000;
    int i=0;
    while(total<=k){
        i++;
        total += (1.0/i);
    };
    cout<<i;
    return 0;
}
